import request from '@/utils/request'

// 查询药物理列表
export function getDrugAuditList(query) {
  return request({
    url: '/gene/drugAudit/list', method: 'get', params: query
  })
}

// 修改审核状态
export function updateDrugAudit(data) {
  return request({
    url: '/gene/drugAudit/update',
    method: 'post',
    data: data
  })
}

// 批量审核状态
export function updateBatchDrugAudit(data) {
  return request({
    url: '/gene/drugAudit/batchUpdate',
    method: 'post',
    data: data
  })
}

// 批量审核状态
export function publicSubmitAudit(data) {
  return request({
    url: '/gene/drugAudit/submitAudit',
    method: 'post',
    data: data
  })
}

/**
 * 通过tableId和tableName获取审批信息
 */
export function getAuditInfo(tableId, tableName) {
  return request({
    url: '/gene/drugAudit/getAuditInfo/' + tableId + '/' + tableName,
    method: 'get'
  })
}
